body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Helvetica, PingFang SC,
    Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  min-width: 900px;
  // min-height: 765px;
  overflow: auto;
  font-size: 14px;
}

html {
  height: 100%;
}

#app {
  // height: 100%;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  word-break: break-word;
  outline: none;
}

body {
  overflow: hidden;
}

ul,
li {
  list-style: none;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ellipsis-double {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mds-btn,
.mds-input {
  border-radius: 6px;
}

.mds-popover {
  min-width: auto;
  padding: 0;
  box-shadow: 0 1px 6px rgb(0 0 0 / 10%);
}

.mds-popover-inner-content {
  padding: 0 !important;
  overflow: hidden;
}

.okr-at-user {
  font-size: 14px;
  line-height: 22px;
  color: #3370ff;
  background-color: #f2f3f5;
  border-radius: 999em;
  margin: 0 2px;
  padding: 0 20px 0 6px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 1;
  display: inline-block;

  &:hover {
    background-color: rgba(51, 112, 255, 0.2);
  }

  &::before {
    content: '\E9C6';
    display: inline-block;
    font-family: 'mdsicon';
    position: absolute;
    right: 5px;
    // top: 0;
    z-index: 2;
  }
}

.okr-editor-atbtn {
  align-items: center;
  background-color: #f2f3f5;
  border: none;
  border-radius: 20px;
  color: #646a73;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  line-height: 22px;
  margin-left: 4px;
  outline: none;
  padding: 0 6px;
  pointer-events: all;
  user-select: none;

  &:hover {
    color: #3370ff;
    background-color: #f0f4ff;
  }
}

.okr-editor-atbtn-O {
  font-size: 14px;
  height: 24px;
  line-height: 24px;
}

.okr-mark-content {
  display: inline-block;
  padding: 2px 0px;
  background-color: rgb(250, 241, 209) !important;
  text-decoration: 0;
  .okr-mark-content {
    padding: 0 !important;
    background-color: transparent !important;
    .text {
      border: none !important;
    }
  }
  .text {
    border-width: 1px;
    border-bottom: 1px solid #f8e6ab;
    padding-bottom: 4px;
  }
}

.citem {
  line-height: 1.7;
}

.okr-mark-no-bg {
  background-color: transparent !important;
  .text {
    border-bottom: 1px solid #f8e6ab !important;
  }
}

.okr-mark-no-boder {
  .text {
    border: none !important;
  }
}

.okr-toolbar {
  display: block;
  visibility: visible;
  z-index: 9999;
  opacity: 1;
  cursor: pointer;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 10px rgb(31 35 41 / 10%);
  .okr-toolbar-container {
    position: relative;
    background: unset;
    border: none;
    border-radius: 4px;
    min-width: unset;
    z-index: 9999;
    .adit-wrapper {
      display: flex;
      background: unset;
      padding: 7px !important;
      user-select: none;
      align-items: center;
      float: left;
      &:hover {
        &::before {
          content: '添加评论';
          display: block;
          clear: both;
          box-shadow: 0 6px 24px 0 rgb(17 34 51 / 10%);
          position: absolute;
          border-radius: 4px;
          border: 1px solid #dee0e3;
          padding: 8px 12px;
          box-sizing: border-box;
          min-width: 20px;
          min-height: 20px;
          background-color: #373c43;
          color: #fff;
          border-color: #373c43;
          white-space: nowrap;
          top: -42px;
          left: -22px;
        }
      }
    }
  }
}
.quote-comment-handle {
  margin: 0px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type='number'] {
  -moz-appearance: textfield;
}

// .mdsicon {
//   display: inline-block;
//   font-style: normal;
//   vertical-align: baseline;
//   text-align: center;
//   text-transform: none;
//   line-height: 1;
//   text-rendering: optimizeLegibility;
//   -webkit-font-smoothing: antialiased;
//   -moz-osx-font-smoothing: grayscale;
// }

// .mdsicon-line-branch:before {
//   content: "\E9C6";
// }

.objective-order-num {
  min-width: 32px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background-color: #4e83fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 32px;
  cursor: default;
  position: relative;
  user-select: none;
  white-space: nowrap;

  .objective-auth {
    bottom: -2px;
    height: 10px;
    position: absolute;
    right: -5px;
    width: 10px;
  }
}

.kr-item-order-num {
  font-size: 12px;
  font-weight: 500;
  height: 18px;
  line-height: 18px;
  min-width: 32px;
  background-color: #f0f4ff;
  color: #3370ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 4px;
  padding-right: 4px;
  margin-right: 8px;
  margin-top: 14px;
  border-radius: 32px;
  cursor: default;
  user-select: none;
  position: relative;

  .kr-auth {
    bottom: -2px;
    height: 10px;
    position: absolute;
    right: -5px;
    width: 10px;
  }
}

.mds-modal-container {
  .mds-modal-mask {
    background-color: rgba(0, 0, 0, 0.4);
  }

  .mds-modal {
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);

    .mds-modal-content {
      border-radius: 6px;
      // overflow: hidden;
    }

    .mds-modal-title {
      font-size: 16px;
    }

    .mds-modal-bottom {
      border-bottom: none;
    }

    .mds-modal-footer {
      display: flex;
      justify-content: flex-end;

      .mds-modal-footer-default {
        .mds-modal-button {
          margin-right: 5px;
        }
        .mds-btn-primary {
          margin-left: 5px;
        }
      }

      .mds-btn {
        width: 80px;
        height: 32px;
      }
    }

    .mds-modal-close {
      font-size: 24px;
      font-weight: normal;
    }
  }
}

* {
  &::selection {
    fill: #373c43;
    background-color: rgba(51, 112, 255, 0.2);
    color: #373c43;
  }
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-table th.el-table__cell.is-sortable {
  &:hover {
    background-color: #eff0f1;
  }
}
.el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
  border-bottom: 1px solid rgba(31, 35, 41, 0.15);
}
.el-table thead {
  color: #646a73;
}
th {
  font-weight: 500;
}
.el-table {
  color: #1f2329;
  // min-width: 1400px;
  .sort-caret.ascending {
    border-bottom-color: #646a73;
  }
  .sort-caret.descending {
    border-top-color: #646a73;
  }
  .caret-wrapper {
    width: 18px;
  }
}
.el-date-table,
.el-table th.el-table__cell {
  padding: 9px 0;
}

.popover-content,
.mds-menu {
  width: max-content;
  padding: 3px;
  text-align: initial;

  .hiddenOptions {
    text-align: initial;
    width: 100%;
    display: block;
    color: #354052;
    border: none;
    margin: 0 !important;
    height: 32px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;

    &:hover {
      color: #354052;
      background-color: #eee;
    }

    &:disabled {
      color: #bbbfc4;
      background-color: transparent;
    }
  }
}

.popover-content-tip {
  padding: 12px 16px;
  text-align: left;
  user-select: none;
}

.popover-content-tip-warn {
  padding: 12px 16px;
  text-align: left;
  user-select: none;
  color: red;
}

.mds-dropdown {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee0e3;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.04);
}

.mds-select-dropdown {
  border: 1px solid #dee0e3;
  border-radius: 6px;
  .mds-select-dropdown-empty {
    height: 50px;
    line-height: 50px;
  }
}

.edit-custom-auth-modal {
  .auth-wrap {
    background-color: #fff;
  }
}

.create-or-edit-auth-modal {
  .mds-modal-content {
    display: flex;
    flex-direction: column;
    .mds-modal-body {
      padding-top: 0;
      overflow: auto;
      .overflow-wrapper {
        max-height: 496px;
      }
    }
  }

  .mds-modal-content {
    max-height: calc(100vh - 120px);
  }
  .custom-auth-item-range {
    background-color: #f5f6f7;
  }
}

.default-modal-pop {
  margin-top: 16px;
}

.mds-tabs-bar {
  margin-bottom: 24px;
}
.mds-tabs-tab {
  color: #333333;
}

.okr-progress-pop {
  margin-top: 12px;
  .popper__arrow {
    border-radius: 1px;
  }
}
.mds-pagination-next .mds-pagination-item-link, .mds-pagination-prev .mds-pagination-item-link{
  border-radius: 6px;
}
.mds-select-dropdown{
  box-shadow:  0 2px 4px -4px rgb(31 35 41 / 2%), 0 4px 8px rgb(31 35 41 / 2%),
    0 4px 16px 4px rgb(31 35 41 / 3%);
    -webkit-box-shadow:  0 2px 4px -4px rgb(31 35 41 / 2%), 0 4px 8px rgb(31 35 41 / 2%),
    0 4px 16px 4px rgb(31 35 41 / 3%);
  }
  .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
    background-color: #0364ff;
    border-color: #0364ff;
  }

.avatar img {
  object-fit: cover;
}

.mds-message-success {
  border-color: #34C724;
  background-color: #F0FCEF;
  color: #333;
  padding: 13px 24px !important;
  box-shadow: 0 8px 24px 8px rgb(31 35 41 / 4%), 0 6px 12px rgb(31 35 41 / 4%), 0 4px 8px -8px rgb(31 35 41 / 6%);

  .mdsicon {
    color: #34C724;
  }

  span {
    font-weight: bold;
  }
}

.mds-message-error {
  border-color: #FF4138;
  background-color: #FFEBEB;
  color: #333;
  padding: 13px 24px !important;
  box-shadow: 0 8px 24px 8px rgb(31 35 41 / 4%), 0 6px 12px rgb(31 35 41 / 4%), 0 4px 8px -8px rgb(31 35 41 / 6%);

  .mdsicon {
    color: #FF4138;
  }

  span {
    font-weight: bold;
  }
}

.mds-message-warning {
  border-color: #FF8800;
  background-color: #FFF5EB;
  color: #333;
  padding: 13px 24px !important;
  box-shadow: 0 8px 24px 8px rgb(31 35 41 / 4%), 0 6px 12px rgb(31 35 41 / 4%), 0 4px 8px -8px rgb(31 35 41 / 6%);

  .mdsicon {
    color: #FF8800;
  }

  span {
    font-weight: bold;
  }
}

.mds-drawer-container.transparent-mask{
  .mds-drawer-mask{
    background-color: transparent;
  }
}

.shadow-transform-box.hide {
  display: none;
  visibility: hidden;
  transform: translate(-9999px, -9999px);
}

.node-default-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 3px 0;
  border: 1px solid transparent !important;
  border-radius: 4px;
  font-size: 12px;
  font-family: PingFangSC, PingFangSC-Regular;
  font-weight: normal;
  color: #333 !important;
  background: #fff !important;
  background-color: #fff !important;
  line-height: 22px;
  margin: 0!important;
  &:hover {
    background-color: rgba(31,35,41,.1) !important;
  }
  &::before {
    display: initial !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #000;
    border: inherit;
    border-color: #000;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    opacity: 0;
    content: " ";
  }
  &:active::before {
    opacity: 0.1;
  }
  &::after {
    display: none !important;
  }
}
